package com.suncky.example.bean

import com.suncky.example.bean.LatLng
import com.suncky.frame.utils.CollectionUtils
import kotlin.collections.List

data class Boundary<E:LatLngs<List<List<LatLng>>>>(
    val number:Int,
    val boundary:E
){
    fun getLatLngsStr(): String {
        return CollectionUtils.joinToString<LatLng>(
            boundary.latlngs.flatMap { it }, ""
        ) { o -> "latitude:${o?.latitude}, longitude:${o?.longitude}\nlatitudeE6:${o?.latitudeE6}, longitudeE6:${o?.longitudeE6}\n\n" }


    }
}
